using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace GameSite.Models.Mapping
{
    public class GameIntroMap : EntityTypeConfiguration<GameIntro>
    {
        public GameIntroMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.ID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("GameIntro");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.GameName).HasColumnName("GameName");
            this.Property(t => t.GameImageUrl).HasColumnName("GameImageUrl");
            this.Property(t => t.GameDetail).HasColumnName("GameDetail");
        }
    }
}
